package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecMsgGroupExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecMsgGroupExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMsgGroupIdIsNull() {
            addCriterion("msg_group_id is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdIsNotNull() {
            addCriterion("msg_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdEqualTo(Integer value) {
            addCriterion("msg_group_id =", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdNotEqualTo(Integer value) {
            addCriterion("msg_group_id <>", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdGreaterThan(Integer value) {
            addCriterion("msg_group_id >", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("msg_group_id >=", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdLessThan(Integer value) {
            addCriterion("msg_group_id <", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("msg_group_id <=", value, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdIn(List<Integer> values) {
            addCriterion("msg_group_id in", values, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdNotIn(List<Integer> values) {
            addCriterion("msg_group_id not in", values, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_id between", value1, value2, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_id not between", value1, value2, "msgGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameIsNull() {
            addCriterion("msg_group_name is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameIsNotNull() {
            addCriterion("msg_group_name is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameEqualTo(String value) {
            addCriterion("msg_group_name =", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameNotEqualTo(String value) {
            addCriterion("msg_group_name <>", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameGreaterThan(String value) {
            addCriterion("msg_group_name >", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("msg_group_name >=", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameLessThan(String value) {
            addCriterion("msg_group_name <", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameLessThanOrEqualTo(String value) {
            addCriterion("msg_group_name <=", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameLike(String value) {
            addCriterion("msg_group_name like", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameNotLike(String value) {
            addCriterion("msg_group_name not like", value, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameIn(List<String> values) {
            addCriterion("msg_group_name in", values, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameNotIn(List<String> values) {
            addCriterion("msg_group_name not in", values, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameBetween(String value1, String value2) {
            addCriterion("msg_group_name between", value1, value2, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupNameNotBetween(String value1, String value2) {
            addCriterion("msg_group_name not between", value1, value2, "msgGroupName");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeIsNull() {
            addCriterion("msg_group_type is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeIsNotNull() {
            addCriterion("msg_group_type is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeEqualTo(Integer value) {
            addCriterion("msg_group_type =", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeNotEqualTo(Integer value) {
            addCriterion("msg_group_type <>", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeGreaterThan(Integer value) {
            addCriterion("msg_group_type >", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("msg_group_type >=", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeLessThan(Integer value) {
            addCriterion("msg_group_type <", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeLessThanOrEqualTo(Integer value) {
            addCriterion("msg_group_type <=", value, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeIn(List<Integer> values) {
            addCriterion("msg_group_type in", values, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeNotIn(List<Integer> values) {
            addCriterion("msg_group_type not in", values, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_type between", value1, value2, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andMsgGroupTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_type not between", value1, value2, "msgGroupType");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1IsNull() {
            addCriterion("group_emp_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1IsNotNull() {
            addCriterion("group_emp_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1EqualTo(String value) {
            addCriterion("group_emp_bak1 =", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1NotEqualTo(String value) {
            addCriterion("group_emp_bak1 <>", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1GreaterThan(String value) {
            addCriterion("group_emp_bak1 >", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1GreaterThanOrEqualTo(String value) {
            addCriterion("group_emp_bak1 >=", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1LessThan(String value) {
            addCriterion("group_emp_bak1 <", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1LessThanOrEqualTo(String value) {
            addCriterion("group_emp_bak1 <=", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1Like(String value) {
            addCriterion("group_emp_bak1 like", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1NotLike(String value) {
            addCriterion("group_emp_bak1 not like", value, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1In(List<String> values) {
            addCriterion("group_emp_bak1 in", values, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1NotIn(List<String> values) {
            addCriterion("group_emp_bak1 not in", values, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1Between(String value1, String value2) {
            addCriterion("group_emp_bak1 between", value1, value2, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak1NotBetween(String value1, String value2) {
            addCriterion("group_emp_bak1 not between", value1, value2, "groupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2IsNull() {
            addCriterion("group_emp_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2IsNotNull() {
            addCriterion("group_emp_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2EqualTo(String value) {
            addCriterion("group_emp_bak2 =", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2NotEqualTo(String value) {
            addCriterion("group_emp_bak2 <>", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2GreaterThan(String value) {
            addCriterion("group_emp_bak2 >", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2GreaterThanOrEqualTo(String value) {
            addCriterion("group_emp_bak2 >=", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2LessThan(String value) {
            addCriterion("group_emp_bak2 <", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2LessThanOrEqualTo(String value) {
            addCriterion("group_emp_bak2 <=", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2Like(String value) {
            addCriterion("group_emp_bak2 like", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2NotLike(String value) {
            addCriterion("group_emp_bak2 not like", value, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2In(List<String> values) {
            addCriterion("group_emp_bak2 in", values, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2NotIn(List<String> values) {
            addCriterion("group_emp_bak2 not in", values, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2Between(String value1, String value2) {
            addCriterion("group_emp_bak2 between", value1, value2, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak2NotBetween(String value1, String value2) {
            addCriterion("group_emp_bak2 not between", value1, value2, "groupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3IsNull() {
            addCriterion("group_emp_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3IsNotNull() {
            addCriterion("group_emp_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3EqualTo(String value) {
            addCriterion("group_emp_bak3 =", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3NotEqualTo(String value) {
            addCriterion("group_emp_bak3 <>", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3GreaterThan(String value) {
            addCriterion("group_emp_bak3 >", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3GreaterThanOrEqualTo(String value) {
            addCriterion("group_emp_bak3 >=", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3LessThan(String value) {
            addCriterion("group_emp_bak3 <", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3LessThanOrEqualTo(String value) {
            addCriterion("group_emp_bak3 <=", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3Like(String value) {
            addCriterion("group_emp_bak3 like", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3NotLike(String value) {
            addCriterion("group_emp_bak3 not like", value, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3In(List<String> values) {
            addCriterion("group_emp_bak3 in", values, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3NotIn(List<String> values) {
            addCriterion("group_emp_bak3 not in", values, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3Between(String value1, String value2) {
            addCriterion("group_emp_bak3 between", value1, value2, "groupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andGroupEmpBak3NotBetween(String value1, String value2) {
            addCriterion("group_emp_bak3 not between", value1, value2, "groupEmpBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}